package org.example.casemodule.api;

import org.example.common.api.UserInterface;
import org.example.common.pojo.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {
    @Autowired
    private UserInterface userInterface;

    public  SysUser getUserInfo(Long userId) {
        SysUser sysUser = userInterface.getSysUser(userId);
        return sysUser;
    }

    public  void updateUserInfo(SysUser sysUser) {
        userInterface.updateUserInfo(sysUser);
    }
}
